<?php
   class Index extends MY_Controller{
	   public function __construct(){
		   parent::__construct();
		   $this->load->model("model_index");
		   $this->load->model("model_posts");
		   $this->load->model("model_home");
		   $this->load->library("pager");
	   }
	   public function index(){
		   $data['config']    = $this->config();
		   $data['hottours']  = $this->hottours();
		   $data['deal']      = $this->model_index->deal();
		   $data['hanoits']   = $this->model_index->getcate(52);
		   $data['halongts']  = $this->model_index->getcate(88);
		   $data['packagets'] = $this->model_index->getcate(124);
		   $data['cagories_hn'] = $this->model_index->getcago(52,5);
		   $data['cagories_hl'] = $this->model_index->getcago(88,5);
		   $data['cagories_pa'] = $this->model_index->getcago(124,5);
		   $data['packagte']    = $this->model_index->getpacktop(124);
		   $data['introduc']    = $this->model_index->intro();
		   $data['halongcruise'] = $this->model_index->hlcruise();
		   //$this->debug($data['deal']);
		   $data['tourscat']  = $data['hottours'];
		   $data['title'] 	  = "Hà Nội - Hạ Long Tours";
		   $this->load->view("layout",$data);
	   }
   }